package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.saas.domain.entity.CouponEntity;

import java.util.List;
import java.util.Map;


/**
 * @author bomfish
 */
public interface CouponModel {
   Long insert(CouponEntity entity);

   void insertBatch(List<CouponEntity> list);

   List<CouponEntity> findEntities(Map<String, Object> param);

   Integer getEntityCount(Map<String, Object> param);

   void update(CouponEntity entity);

   CouponEntity getByKey(Long key, String corpid);

   Integer updateBatch(List<CouponEntity> updateList, String corpid) throws XbbException;

    List<CouponEntity> findEntitysByIdIn(List<Long> couponIdList, String corpid);
}
